package com.wangyb.wework.entity.employee;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * (通讯录 - 部门)中间对象 ww_employee_dept
 *
 * @Author: wangyb
 * @Date: 2021/6/28 5:43 下午
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("ww_employee_dept")
public class WwEmployeeDept implements Serializable {

	private static final long serialVersionUID=1L;


	/** $column.columnComment */
	@TableId(value = "id")
	private Long id;

	/** 通讯录员工(ww_employee.id) */
	private Long employeeId;

	/** 通讯录部门ID (sys_dept.id) */
	private Long deptId;

	/** 所在的部门内是否为上级 */
	private Integer isLeaderInDept;

	/** 排序 */
	@TableField("`order`")
	private Integer order;

	/** $column.columnComment */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	/** $column.columnComment */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

}
